package com.zhuzhe.blog.system.mapper;

import com.zhuzhe.blog.system.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author u53
 * @since 2020-10-13
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    List<String> findRoleIdsByid(@Param("id") String id);

    Integer deleteUserRoleByUserId(@Param("userId") String userId);

    Integer saveUserRole(@Param("id") String userId , @Param("roleIds") List<String> roleIds);
}
